using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DAOLayer;
using DTO;
namespace QuanLyThuVien
{
    public partial class frmDangNhap : Form
    {
        public frmDangNhap()
        {
            InitializeComponent();
        }
        public static Boolean XacNhan = false;
        private void btnDongY_Click(object sender, EventArgs e)
        {
            ThuThuDTO ttDto = new ThuThuDTO();
            ttDto = ThuThuDAO.getThuThu(txtTenDangNhap.Text.Trim());
            if(ttDto.MatKhau == txtMatKhau.Text.Trim())
            {
                XacNhan = true;
                 
            }else
                XacNhan = false;
            this.Close();
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}